package day07;
/*
* @Author :lcy
* @Description :
* @Date 2021/11/30 21:17
*/

import java.util.Scanner;

public class Test02_Scanner {
    public static void main(String[] args) {
        //创建对象
        Scanner sc = new Scanner(System.in);

        //接收数据
        System.out.println("请输入第一个数：");
        int a = sc.nextInt();
        System.out.println("请输入第二个数：");
        int b = sc.nextInt();
        System.out.println("请输入第三个数：");
        int c = sc.nextInt();

        //获取3个数的最大值
        int temp = (a > b ? a : b);
        int max = (temp > c ? temp : c);

        System.out.println("max:"+max);

    }
}
